// 加载插件
// const requirePlugin = import.meta.glob('./plugins/*.js')
// for (const path in requirePlugin) {
//     requirePlugin[path]
// }
import vue from '@vitejs/plugin-vue'

import createHtml from './plugins/html'
import createBanner from './plugins/banner'

export default function createVitePlugins(env, command) {
  const vitePlugins = [vue()]
  vitePlugins.push(createHtml(env, command))
  vitePlugins.push(createBanner())
  return vitePlugins
}
